<? 
switch ($_REQUEST['frame'])
{	case 'sevect':
		switch ($_REQUEST['cat'])
		{	case '26':
				$title="Giới thiệu";
				break;	
			case '25':
				$title="Hổ trợ";
				break;		
				default :
				$cont=GetaboutInfo($_REQUEST['cat'],$status=0);
				$title=$cont['news_subject'];
				break;		
		}
		break;
	case 'ykien':
		$title="H&#7887;i &#273;&#225;p ";
		break;	
	case 'newscatvn':
		if ($_REQUEST['id']!='') $cat=killInjection($_REQUEST['id']);
		$catinfo=getinfo("newscategoriesvn","categories_id=$cat");
		$tt=@mysql_fetch_array($catinfo);	
		$title=$tt['categories_name'];
		break;	
	case 'newsviewvn':
		$title="Giới thiệu";
		break;
	case 'gioithieu':
		switch ($_REQUEST['cat'])
		{	case '1000':
				$title="Gi&#7899;i thi&#7879;u";
				break;		
				default :
				$cont=GetaboutInfo($_REQUEST['cat'],$status=0);
				$title=$cont['news_subject'];
				break;		
		}
		break;	
	case 'news':
	case 'newscat':
		$title="KHÁCH HÀNG TIÊU BIỂU";
		break;	
	case 'newsview':
		if ($_REQUEST['id']!='') $cat=killInjection($_REQUEST['id']);
	
				$cont=getinfo("news","news_id=$cat");
				$tt=@mysql_fetch_array($cont);
				$title=$tt['news_subject'];
				break;		

	case "content":
		switch ($_REQUEST['name'])
		{
			case 'aboutus':
				$title="Gi&#7899;i thi&#7879;u";
				break;		
			default :
				$cont=GetContentNameInfo($_REQUEST['name']);
				$title=$cont['contents_note'];
				break;		
		}
		break;
	/* case "newscat":
		$cat=0;	
		if ($_REQUEST['cat']!='') $cat=killInjection($_REQUEST['cat']);
		$catinfo=GetNewsCategoryInfo($cat);
		$title=$catinfo['categories_name'];
		break; */
	case "newproduct" :
		$title='S&#7843;n ph&#7849;m';
		break;
	case "category" :
		$cat=0;
		if ($_REQUEST['cat']!='') $cat=killInjection($_REQUEST['cat']);
		$catinfo=GetCategoryInfo($cat);	
		$title=$catinfo['categories_name'];
		break;
	case "provider":
		$manufacturers_id=0;
		if ($_REQUEST['manufacturers_id']!='') $manufacturers_id=killInjection($_REQUEST['manufacturers_id']);
		$provider=GetProviderInfo($manufacturers_id);	
		$title="S&#7842;N PH&#7848;M C&#7910;A : ".$provider['providers_name'];
		break;
	case "product" :
		$title="Chi ti&#7871;t";
		break;
	case "login" :
		$title="&#272;&#259;ng nh&#7853;p"; 
		break;
	case "search" :
		$title="T&#236;m ki&#7871;m"; 
		break;	
	case "contact" :
		$title="Th&#244;ng tin li&#234;n h&#7879;";
		break;
	case "register" :
		$title="&#272;&#259;ng k&#253;";
		break;
	case "forgotpassword" :
		$title="M&#7853;t kh&#7849;u";
		break;
	case "edoc":
		$title="Download";
		break;
	default :
		$title="S&#7843;n ph&#7849;m &#273;&#7863;c tr&#432;ng"; 
		break;
}
echo $title;
?>
 